package com.auxgroup.hr.front.service.process.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.auxgroup.hr.front.commons.utils.ObjectFieldUtils;
import com.auxgroup.hr.front.dao.domain.PsCWfPrcHdr;
import com.auxgroup.hr.front.dao.repository.PsCWfPrcHdrRepository;
import com.auxgroup.hr.front.service.process.WfPrcHdrService;

/** 
 * @author lvliuhao 
 * @version 创建时间：2018年5月29日 下午3:33:06 
 * 转正流程service
 */
@Service("wfPrcHdrService")
public class WfPrcHdrServiceImpl implements WfPrcHdrService {
	
	@Autowired
	private PsCWfPrcHdrRepository psCWfPrcHdrRepository;


	@Override
	public PsCWfPrcHdr getWfPrcHdr(String cTransactionNbr) {
		return psCWfPrcHdrRepository.findOne(cTransactionNbr);
	}


	@Override
	public PsCWfPrcHdr save(PsCWfPrcHdr prcHdr) {
		ObjectFieldUtils.handleNullValue(prcHdr);
		return psCWfPrcHdrRepository.save(prcHdr);
	}

}
 